//
//  RootViewController.h
//  atXiaoGeBClient
//
//  Created by Linyu Niu on 12/04/2018.
//  Copyright © 2018 Linyu Niu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface RootViewController : UIViewController




/**
 适合于大多数界面的tablevfiew

 @param view tableview 的superview
 @param frame tableview 位置大小
 @param delegateAndDataSource tableview delegate & datasource
 */
-(UITableView *)addTableViewInView:(UIView *)view frame:(CGRect)frame delegateAndDataSource:(id<UITableViewDelegate,UITableViewDataSource>)delegateAndDataSource;

-(BOOL)stopLoadingView:(UIView *)view needShowMsg:(BOOL)showMsg result:(NSDictionary *)result;
-(void)startLoadingView:(UIView *)view;
-(BOOL)isSuccess:(NSDictionary *)result;
-(void)addEmptyView:(UIView *)view list:(NSArray *)list imgName:(NSString *)imgName;

-(void)setRichLabelWithNumber:(NSString *)number unit:(NSString *)unit numberColor:(UIColor *)numberColor textColor:(UIColor *)txtColor fontSize:(float)fontSize numberSize:(float)numberSize label:(UILabel *)label;
@end
